package com.zzrc.grape.service;

import com.zzrc.grape.model.Branch;
import com.zzrc.grape.model.KeyVo;

import java.util.List;
import java.util.Map;

/**
 * 部门Service
 * @author Maochao-zhu
 *
 */
public interface BranchService {
	Integer insertBranch(Branch branch);
	Integer deleteBranchById(String[] ids);
	Integer updateBranchById(Branch branch);
	Branch getBranchById(Integer id);
	List<Branch> getBranchList(Branch branch);
	List<Map<String,Object>> getCustomerHead2Map();
	List<Map<String,Object>> getCustomerErpIdMap();
	
	Integer getBranchListCount(Branch branch);
	Integer getBranchCountByPid(String pid);
	List<KeyVo> getKeyList();
	/**
	 * @param list
	 */
	void importExcel(List<Branch> list);
	//根据erpID获取部门信息
	Branch getBranchByErpId(String f_DLP_fhbm);
	
	//根据部门名称获取部门
	Branch getBranchByName(String acceptBranchName);

	List<Branch> getBranchByPid(Integer pid);
}
